package com.itljm.cxrMarket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 收货地址表
 * @TableName address
 */
@TableName(value ="address")
@Data
public class Address implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String userId;// 用户id
    private String receiverName;// 收货人姓名
    private String receiverPhone; // 收货人电话
    private String province; // 省
    private String city;// 市
    private String district;//  区/县
    private String detailedAddress; // 详细地址
    private Integer isDefault; // 是否为默认地址 0:不是，1：是
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}